package cool.mor.entity;

import cool.mor.entity.key.EmployeeRewardsAndPunishmentKey;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Ivan
 */
@Data
@Entity
@Table(name = "employee_rewards_and_punishment")
@IdClass(EmployeeRewardsAndPunishmentKey.class)
public class EmployeeRewardsAndPunishment implements Serializable {
    @Id
    @Column(name = "rewards_and_punishment_id")
    private String rewardsAndPunishmentId;
    @Id
    @Column(name = "employee_id")
    private String employeeId;

}